import java.util.Scanner;

public class Mingming {
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        while(s.hasNext()) {
            String str = s.nextLine();
            StringBuilder sb = new StringBuilder();
            int up = 0;
            for(int i = 0; i < str.length(); i++) {
                if(str.charAt(i) == '_') {
                    up = 1;
                }else {
                    if(up == 0) {
                        sb.append(str.charAt(i));
                    }else {
                        sb.append(str.substring(i,i + 1).toUpperCase());
                        up = 0;
                    }
                }
            }
            System.out.println(sb.toString());
        }
    }
}
